//
//  main.swift
//  16.Selector
//
//  Created by 左忠飞 on 2021/8/26.
//

import Foundation

print("Hello, World!")

class A {
    @objc func turn(by angle:Int,speed:Float) {
        print("angle:\(angle),speed:\(speed)")
    }
    
    @objc func turn(){
        
    }
    

    //oc中调用方法用greeting这个名字
    @objc(greeting:)
    func 打招呼(名字:String){
        print("哈喽,\(名字)")
    }
    
}


//条件编译
#if os(macOS)
print("macOS")
#elseif false
print("else")
#else
print("else")
#endif
